/**
 * Created by wry on 2015/1/13.
 */

module.exports = function (app) {
    var BDMarketing = require('../../controllers/BI/BI-BDMarketing-controller')

    // Invite List
    app.get('/rest/' + RESTFullServiceVersion + '/BI/reports/getMarketingInviteList/:community', BDMarketing.getMarketingInviteListReport);
    app.get('/rest/' + RESTFullServiceVersion + '/BI/reports/getMarketingInviteSentList/:community', BDMarketing.getMarketingInviteSentListReport);

    // Comm Apps
    app.get('/rest/' + RESTFullServiceVersion + '/BI/reports/getCommApps/:community/:startDate/:endDate', BDMarketing.getCommAppsReport);

    // Promo Code Stats
    app.get('/rest/' + RESTFullServiceVersion + '/BI/reports/getPromoCodeStats/:community/:startDate/:endDate', BDMarketing.getPromoCodeStatsReport);

};